package session.stateless;

import entity.CRM.ProductPrice;
import entity.Product;
import javaclass.ProductType;
import java.util.List;
import javax.ejb.Local;

@Local
public interface ProductBeanLocal {
    
    public ProductPrice createProductPrice(ProductType productType, Long lowerLimit, Long higherLimit, Double price);
    public void updateProductPrice(Long productId,ProductType productType, Long lowerLimit, Long higherLimit, Double price);
    public void deleteProductPrice(Long productId);
    
    public ProductPrice lookupRange(ProductType productType, Long quantity);
    public boolean checkConflict(Long productId, ProductType productType, Long lowerLimit, Long higherLimit);

    
    public List<Product> getProductList();
    public List<ProductPrice> getProductPricesByType(ProductType productType);
    
    public ProductPrice getFirstProductPriceA();
    public ProductPrice getFirstProductPriceB();
    public ProductPrice getFirstProductPriceC();
    public ProductPrice getFirstProductPriceD();
            
}
